<!DOCTYPE html>
<html lang="en">
<head>

</head>
<body>
    <input id="fileupload" type="file" name="files[]" data-url="file_upload" multiple>
    <script src="/static/js/jquery.min.js"></script>
    <script src="/static/js/vendor/jquery.ui.widget.js"></script>
    <script src="/static/js/jquery.fileupload.js"></script>

    <script>
    $(function () {
      $('#fileupload').fileupload({
        dataType: 'json',
        done: function (e, data) {
          $.each(data.result.files, function (index, file) {
            $('<p/>').text(file.name).appendTo(document.body);
          });
        }
      });
    });
    </script>
</body>
</html>